<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>SHOPINFOS</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  // 初始化日期
	
			function getInitMonth() {
				var date = new Date();
				var nowYear = date.getFullYear();
				var month = ("0" + (date.getMonth() + 1)).slice(-2);
				var day = ("0" + date.getDate()).slice(-2);
				var today = nowYear + "-" + (month) + "-" + (day);
				$("#createtime").val(today);
			}

			$(function() {
				getInitMonth();
			});
  </script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="shopinfosController.do?doAdd" tiptype="6">
					<input id="id" name="id" type="hidden" value="${shopinfosPage.id }"/>
		<table style="width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							资讯标题:
						</label>
					</td>
					<td class="value" colspan="3">
					     	 <input id="infotitle" name="infotitle" type="text" maxlength="100" style="width: 85%"  datatype="*"  ignore="checked" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">资讯标题</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							企业编号:
						</label>
					</td>
					<td class="value">
							<input id="shopid" name="shopid" type="text" style="width: 150px" class="searchbox-inputtext" readonly="readonly" onclick="popupClick(this,'企业编号','shopid','shops_select1')" datatype="*" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业编号</label>
						</td>
					<td align="right">
						<label class="Validform_label">
							资讯日期:
						</label>
					</td>
					<td class="value">
							   <input id="infodate" name="infodate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()"  datatype="*"  ignore="checked" />    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">资讯日期</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							录入时间:
						</label>
					</td>
					<td class="value">
							   <input id="createtime" name="createtime" type="text" style="width: 150px" class="Wdate" readonly="readonly"  datatype="*"  ignore="checked" />    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">录入时间</label>
						</td>
					<td align="right">
						<label class="Validform_label">
							资讯状态:
						</label>
					</td>
					<td class="value">
					     	 <t:dictSelect field="infostate" type="list"  datatype="*"  typeGroupCode="SHOPSTATE"   defaultVal="${shopinfosPage.infostate}" hasLabel="false"  title="资讯状态" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">资讯状态</label>
					</td>
				</tr>
				
				
				<tr>
					<td align="right">
						<label class="Validform_label">
							资讯内容:
						</label>
					</td>
					<td class="value" colspan="3">
								<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.config.js"></script>
								<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.all.min.js"></script>
						    	<textarea name="infocontent" id="infocontent" style="width: 650px;height:300px" datatype="*" ></textarea>
							    <script type="text/javascript">
							        var infocontent_editor = UE.getEditor('infocontent');
							    </script>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">资讯内容</label>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
